<div style="height:auto;width:100%">
<table class="tblInfo" id="frmcreateservice_tblmain" width="100%">

<tr>
<td class="width25" height="400" valign="top" >
<div class="divLeft" >
<table class="info" id="frmcreateservice_tblinfo">
<tr><td>
<div id="frmcreateservice_divleft" class="divleft">

<table class="width100" style="background-color:transparent">

<tr>
    <td class="lblRequired width50" >
    Tên dịch vụ 
    </td>
    <td >
    <input type="text"   maxlength="64" id="frmcreateservice_txthotelname" name="frmcreateservice_txthotelname" value="" class="txtRequired" />  
    </td>
    </tr> 
    <tr>
    <td class="lblRequired width50" >
    Cấp Độ
    </td>
    <td >
        <select id="frmcreateservice_cbbLevel" style="width:100%"  name="frmcreateservice_cbbLevel">                
        <option value="1">Bình thường</option>
        <option value="2">Khá</option>
        <option value="3">Tốt</option>
        <option value="4">Đặc biệt</option>
        
    </select>  
    </td>
    </tr> 
        
<tr>
    <td class="lblRequired">
TP/Tỉnh
    </td>
    <td id="frmcreateservice_tdCity">
    <select id="frmcreateservice_cbbCity" class="cbbRequired" name="frmcreateservice_cbbCity">                
        <option value="">--Chọn--</option>
    </select>
    </td>
    </tr>
<tr>
    <td class="lblRequired">
Quận/Huyện
    </td>
    <td id="frmcreateservice_tdDistrict">
    <select id="frmcreateservice_cbbDistrict" class="cbbRequired" name="frmcreateservice_Dist">                
        <option value="">--Chọn--</option>
    </select>
    </td>
    </tr>
<tr>
    <td  >
Phường/Xã
    </td>
    <td id="frmcreateservice_tdWard">
    <select id="frmcreateservice_Ward" class="cbbRequired" name="frmcreateservice_Ward">                
        <option value="">--Chọn--</option>
    </select>
    </td>
    </tr>
    
<tr>
    <td colspan="2"> 

      <div id="frmcreateservice_tdTerviceType"></div> 

    </td>
    </tr> 
        <tr>
<td class="lblRequired width50">
Địa chỉ 
</td>
<td>
<input type="text" maxlength="50" id="frmcreateservice_txtAddress" name="frmcreateservice_txtAddress" value="" class="txtRequired" />
</td>
</tr>
    <tr>
    <td class="lblRequired">
    Chủ dịch vụ
    </td>
    <td>
    <input type="text" maxlength="50" id="frmcreateservice_boss" name="frmcreateservice_boss" value="" class="txtRequired" />

    </td>
    </tr>
    <tr >
    <td class="lblRequired">
    Điện Thoại
    </td>
    <td>
    <input type="text" id="frmcreateservice_txtPhone" maxlength="32" name="frmcreateservice_txtPhone" value="" class="txtRequired isNumber" />
     
    </td>
    </tr>
    
    </table>
        <div class="divactionbuton">
    <input type="hidden" id='frmcreateservice_hdEdit' value="0"/>
    <input type="hidden" id='frmcreateservice_hdId' value=""/>
    <button class="save validate btnsave"   id="frmcreateservice_submit" > Thêm Mới </button>
    <button class="clear"  accesskey="N">Nhập Lại</button>  
        </div>

</div>
</td></tr>
       
</table>
</div></td>
<td class="clsmiddle"></td>
<td height="400" valign="top" align="center">
<div id="frmcreateservice_divGrid" class="divGrid"> </div></td>
<td class="clsend"></td>
</tr>
</table>
</div>
<script language="javascript">
$(document).ready(function () {
    initForm('frmcreateservice_tblinfo');
    initDivleft();
    $('#frmcreateservice_cbbCity').live('change',function(){
        xajax_frmcreateservice_fillDistrict($(this).val());
        xajax_frmcreateservice_fillWard('-1');
    });  
     $('#frmcreateservice_cbbDistrict').live('change',function(){
        xajax_frmcreateservice_fillWard($(this).val());
    });
});

function frmcreateservice_chkService(id){
    if($('#frmcreateservice_chkservice'+id).is(':checked')){
        $('#frmcreateservice_cbbHotelType'+id).show();
    }else{
        $('#frmcreateservice_cbbHotelType'+id).hide();        
    }
}

function frmcreateservice_chkedit(id,val){
    if(val==0){// tương đương với không có dịch vụ
        $('#frmcreateservice_cbbHotelType'+id).val(''); 
        $('#frmcreateservice_cbbHotelType'+id).hide(); 
        $('#frmcreateservice_chkservice'+id).attr('checked',false); 
    }else{
        $('#frmcreateservice_cbbHotelType'+id).val(val); 
        $('#frmcreateservice_cbbHotelType'+id).show();   
        $('#frmcreateservice_chkservice'+id).attr('checked',true); 
    }
    
}

xajax_frmcreateservice_init(); 
</script>